ZetaProducer.RuntimeBusinessLogic.Code.Scripting.InterpreterException ----------------- Skript-Fehler: --------------- Objekt erforderlich: 'assetCategory' --------------- Zeile 433, Spalte 14. --------------- Quelltext: 001: option explicit 002: 003: ExecuteScript__ 004: (...Versteckte Zeilen...) 367: 368: 369: 370: public sub ExecuteScript__() 371: 372: 373: dim article 374: set article = Context.Scope.CurrentPageItem 375: dim items 376: set items = Context.Scope.CurrentPage.ScriptingGetPageItems( Context.Scope.Library.VersioningVersion ) 377: 378: dim hassame 379: hassame = false 380: 381: dim i 382: for i=0 to items.Count-1 383: dim item 384: set item = items(i) 385: 386: if item.IsActive and (item.StyleName = "Bilderalbum" or item.StyleName = "Einzelnes Bild") then 387: if item.ID = article.ID and not hassame then 388: 389: 390: Context.Write "" & vbCrLf 391: Context.Write "" & vbCrLf 392: Context.Write "" 393: 394: if Context.Scope.CurrentPage.GetInheritedAttribute("picgallery_language").Value = "de" then 395: 396: Context.Write "" & vbCrLf 397: Context.Write "" & vbCrLf 398: Context.Write "" 399: 400: elseif Context.Scope.CurrentPage.GetInheritedAttribute("picgallery_language").Value = "en" then 401: 402: Context.Write "" & vbCrLf 403: Context.Write "" & vbCrLf 404: Context.Write "" 405: 406: end if 407: 408: Context.Write "" & vbCrLf 409: Context.Write "" & vbCrLf 415: Context.Write "" 416: 417: end if 418: hassame = true 419: end if 420: next 421: 422: 423: Context.Write "" & vbCrLf 424: Context.Write "" & vbCrLf 425: Context.Write "" 426: 427: 428: dim albumID : albumID = Context.Scope.CurrentArticle.Values.GetValue("Album") 429: dim thumbnailWidth : thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue("Breite der Vorschaubilder") 430: dim thumbnailHeight : thumbnailHeight = CInt((thumbnailWidth*3)/4) 431: dim imagesPerRow : imagesPerRow = Context.Scope.CurrentArticle.Values.GetValue("Anzahl Vorschaubilder pro Zeile") 432: dim assetCategory : set assetCategory = Context.Scope.CurrentWebProject.GetAssetCategoryByID( albumID ) 433: dim images : set images = assetCategory.Images 434: 435: dim rowIndex : dim colIndex : dim index 436: dim rowCount : rowCount = images.Count \ imagesPerRow 437: if images.Count mod imagesPerRow > 0 then 438: rowCount = rowCount + 1 439: end if 440: 441: Context.Scope.Library.Log images.Count & " images..." 442: Context.Scope.Library.CheckAsyncStopProcessing 443: 444: ' Must use a prefix to allow multiple instances of the JavaScript on the page. 445: dim prefix 446: prefix = "prefix_1194_" 447: 448: 449: Context.Write "" & vbCrLf 450: Context.Write "" & vbCrLf 455: Context.Write "
" & vbCrLf 456: Context.Write "" 457: 458: if Context.Scope.CurrentArticle.Name <> "" then 459: 460: Context.Write "

" 461: 462: Context.Write Context.Scope.CurrentArticle.Name 463: 464: Context.Write "

" 465: 466: end if 467: 468: Context.Write "" & vbCrLf 469: Context.Write "" & vbCrLf 564: Context.Write "" & vbCrLf 565: Context.Write "" 566: 567: 568: ' -- Build the thumbnails grid. 569: index = 0 570: for rowIndex = 0 to rowCount-1 571: 572: 573: Context.Write "" & vbCrLf 574: Context.Write "" & vbCrLf 575: Context.Write " " 576: 577: 578: for colIndex = 0 to imagesPerRow-1 579: 580: 581: Context.Write "" & vbCrLf 582: Context.Write " " 583: 584: 585: if index<=images.Count-1 then 586: set image = images.Item(index) 587: 588: if image.height > image.width then 589: thumbnailWidth = thumbnailHeight 590: else 591: thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue("Breite der Vorschaubilder") 592: end if 593: 594: if image.CheckCreateThumbnail( thumbnailWidth ) then 595: Context.Scope.Library.Log "Erstelle Vorschaubild " & image.Name 596: else 597: Context.Scope.Library.CheckAsyncStopProcessing 598: end if 599: 600: 601: Context.Write "" & vbCrLf 602: Context.Write " " & vbCrLf 696: Context.Write " " 697: 698: else 699: 700: Context.Write "" & vbCrLf 701: Context.Write " " & vbCrLf 702: Context.Write " " 703: 704: end if 705: 706: Context.Write "" & vbCrLf 707: Context.Write " " 708: 709: 710: index = index + 1 711: next 712: 713: 714: Context.Write "" & vbCrLf 715: Context.Write "" & vbCrLf 716: Context.Write "" 717: 718: next 719: 720: Context.Write "" & vbCrLf 721: Context.Write "
" & vbCrLf 615: Context.Write " " & vbTab & "" & vbCrLf 628: Context.Write " " & vbTab & "" & vbTab & "" & vbCrLf 633: Context.Write " " & vbTab & "" & vbCrLf 634: Context.Write " " 635: 636: if Context.Scope.CurrentArticle.Values.GetValue("Bildname anzeigen") = 1 OR Context.Scope.CurrentArticle.Values.GetValue("Bilder nummerieren") = 1 OR Context.Scope.CurrentArticle.Values.GetValue("Bildbeschreibung anzeigen") = 1 then 637: 638: Context.Write "" & vbCrLf 639: Context.Write " " & vbTab & "
" & vbCrLf 640: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 641: 642: if Context.Scope.CurrentArticle.Values.GetValue("Bilder nummerieren") = 1 then 643: 644: Context.Write "" 645: 646: Context.Write index+1 647: 648: Context.Write "" 649: 650: end if 651: 652: Context.Write "" & vbCrLf 653: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 654: 655: if Context.Scope.CurrentArticle.Values.GetValue("Bildname anzeigen") = 1 then 656: 657: Context.Write "" 658: 659: Context.Write image.Name 660: 661: Context.Write "" 662: 663: end if 664: 665: Context.Write "" & vbCrLf 666: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 667: 668: if Context.Scope.CurrentArticle.Values.GetValue("Bildbeschreibung anzeigen") = 1 then 669: 670: Context.Write "" & vbCrLf 671: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 672: 673: if Context.Scope.CurrentArticle.Values.GetValue("Bildname anzeigen") = 1 then 674: 675: Context.Write "
" 676: 677: end if 678: 679: Context.Write "" 680: 681: Context.Write image.Description 682: 683: Context.Write "" & vbCrLf 684: Context.Write "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" & vbTab & "" 685: 686: end if 687: 688: Context.Write "" & vbCrLf 689: Context.Write " " & vbTab & "
" & vbCrLf 690: Context.Write " " 691: 692: end if 693: 694: Context.Write "" & vbCrLf 695: Context.Write "
 
" & vbCrLf 722: Context.Write "
" 723: 724: end sub 725: ----------------- bei ZetaProducer.RuntimeBusinessLogic.Code.Scripting.BaseInterpreter.Run() bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderInterpreter.OnRenderArticle(String text, RenderGrid grid) bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderAreaGrid.FormatGridItem() bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderGrid.Render() bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderAreaGrid.Render() bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Macros.RenderGridMacros.DoProcess(String textToProcess) bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderDispatcher.DoProcess(String textToProcess) bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderPage.RenderCode(String renderText) bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderPage.CreatePage() bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderEngine.CreatePage(WebPage page) bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderEngine.Process(RenderEngineParameterInfo parameterInfo) bei ZetaProducer.Main.UI.BuildPublish.Simple.SimpleBuildPublishForm.DoWorkBuild(Object sender, DoWorkEventArgs e) bei ZetaProducer.Main.UI.BuildPublish.Common.AsyncRenderGuiBinder._bw_DoWork(Object sender, DoWorkEventArgs e) bei System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) bei System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) InterpreterException { Message="Skript-Fehler:\\r\\n---------------\\t\\t\\t \\r\\nObjekt erforderlich: \\'assetCategory\\'\\r\\n---------------\\t\\t\\t \\r\\nZeile 433, Spalte 14.\\r\\n---------------\\t\\t\\t \\r\\nQuelltext: \\r\\n001: option explicit\\r\\n002: \\r\\n003: ExecuteScript__\\r\\n004: \\r\\n(...Versteckte Zeilen...)\\r\\n367: \\r\\n368: \\r\\n369: \\r\\n370: public sub ExecuteScript__()\\r\\n371: \\r\\n372: \\r\\n373: dim article\\r\\n374: set article = Context.Scope.CurrentPageItem\\r\\n375: dim items\\r\\n376: set items = Context.Scope.CurrentPage.ScriptingGetPageItems( Context.Scope.Library.VersioningVersion )\\r\\n377: \\r\\n378: dim hassame\\r\\n379: hassame = false\\r\\n380: \\r\\n381: dim i\\r\\n382: for i=0 to items.Count-1\\r\\n383: dim item\\r\\n384: set item = items(i)\\r\\n385: \\r\\n386: if item.IsActive and (item.StyleName = \\"Bilderalbum\\" or item.StyleName = \\"Einzelnes Bild\\") then\\r\\n387: \\tif item.ID = article.ID and not hassame then\\r\\n388: \\r\\n389: \\r\\n390: Context.Write \\"\\" & vbCrLf\\r\\n391: Context.Write \\"\\" & vbCrLf\\r\\n392: Context.Write \\"\\"\\r\\n393: \\r\\n394: if Context.Scope.CurrentPage.GetInheritedAttribute(\\"picgallery_language\\").Value = \\"de\\" then \\r\\n395: \\r\\n396: Context.Write \\"\\" & vbCrLf\\r\\n397: Context.Write \\"\\" & vbCrLf\\r\\n398: Context.Write \\"\\"\\r\\n399: \\r\\n400: elseif Context.Scope.CurrentPage.GetInheritedAttribute(\\"picgallery_language\\").Value = \\"en\\" then \\r\\n401: \\r\\n402: Context.Write \\"\\" & vbCrLf\\r\\n403: Context.Write \\"\\" & vbCrLf\\r\\n404: Context.Write \\"\\"\\r\\n405: \\r\\n406: end if \\r\\n407: \\r\\n408: Context.Write \\"\\" & vbCrLf\\r\\n409: Context.Write \\"\\" & vbCrLf\\r\\n415: Context.Write \\"\\"\\r\\n416: \\r\\n417: \\tend if\\r\\n418: hassame = true\\r\\n419: end if\\r\\n420: next\\r\\n421: \\r\\n422: \\r\\n423: Context.Write \\"\\" & vbCrLf\\r\\n424: Context.Write \\"\\" & vbCrLf\\r\\n425: Context.Write \\"\\"\\r\\n426: \\r\\n427: \\r\\n428: dim albumID : albumID = Context.Scope.CurrentArticle.Values.GetValue(\\"Album\\")\\r\\n429: dim thumbnailWidth : thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue(\\"Breite der Vorschaubilder\\")\\r\\n430: dim thumbnailHeight : thumbnailHeight = CInt((thumbnailWidth*3)/4)\\r\\n431: dim imagesPerRow : imagesPerRow = Context.Scope.CurrentArticle.Values.GetValue(\\"Anzahl Vorschaubilder pro Zeile\\")\\r\\n432: dim assetCategory : set assetCategory = Context.Scope.CurrentWebProject.GetAssetCategoryByID( albumID )\\r\\n433: dim images : set images = assetCategory.Images\\r\\n434: \\r\\n435: dim rowIndex : dim colIndex : dim index\\r\\n436: dim rowCount : rowCount = images.Count \\ imagesPerRow\\r\\n437: if images.Count mod imagesPerRow > 0 then \\r\\n438: rowCount = rowCount + 1\\r\\n439: end if\\r\\n440: \\r\\n441: Context.Scope.Library.Log images.Count & \\" images...\\"\\r\\n442: Context.Scope.Library.CheckAsyncStopProcessing\\r\\n443: \\r\\n444: \\' Must use a prefix to allow multiple instances of the JavaScript on the page.\\r\\n445: dim prefix\\r\\n446: prefix = \\"prefix_1194_\\"\\r\\n447: \\r\\n448: \\r\\n449: Context.Write \\"\\" & vbCrLf\\r\\n450: Context.Write \\"\\" & vbCrLf\\r\\n455: Context.Write \\"
\\" & vbCrLf\\r\\n456: Context.Write \\"\\"\\r\\n457: \\r\\n458: if Context.Scope.CurrentArticle.Name <> \\"\\" then \\r\\n459: \\r\\n460: Context.Write \\"

\\"\\r\\n461: \\r\\n462: Context.Write Context.Scope.CurrentArticle.Name\\r\\n463: \\r\\n464: Context.Write \\"

\\"\\r\\n465: \\r\\n466: end if \\r\\n467: \\r\\n468: Context.Write \\"\\" & vbCrLf\\r\\n469: Context.Write \\"\\" & vbCrLf\\r\\n564: Context.Write \\"\\" & vbCrLf\\r\\n565: Context.Write \\"\\"\\r\\n566: \\r\\n567: \\r\\n568: \\' -- Build the thumbnails grid.\\r\\n569: index = 0\\r\\n570: for rowIndex = 0 to rowCount-1\\r\\n571: \\r\\n572: \\r\\n573: Context.Write \\"\\" & vbCrLf\\r\\n574: Context.Write \\"\\" & vbCrLf\\r\\n575: Context.Write \\" \\"\\r\\n576: \\r\\n577: \\r\\n578: for colIndex = 0 to imagesPerRow-1\\r\\n579: \\r\\n580: \\r\\n581: Context.Write \\"\\" & vbCrLf\\r\\n582: Context.Write \\" \\"\\r\\n583: \\r\\n584: \\r\\n585: if index<=images.Count-1 then\\r\\n586: set image = images.Item(index)\\r\\n587: \\r\\n588: \\t\\t\\tif image.height > image.width then\\r\\n589: \\t\\t\\t\\tthumbnailWidth = thumbnailHeight\\r\\n590: \\t\\t\\telse\\r\\n591: \\t\\t\\t\\tthumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue(\\"Breite der Vorschaubilder\\")\\r\\n592: \\t\\t\\tend if\\r\\n593: \\t\\t\\r\\n594: if image.CheckCreateThumbnail( thumbnailWidth ) then\\r\\n595: Context.Scope.Library.Log \\"Erstelle Vorschaubild \\" & image.Name\\r\\n596: else\\r\\n597: Context.Scope.Library.CheckAsyncStopProcessing\\r\\n598: end if\\r\\n599: \\r\\n600: \\r\\n601: Context.Write \\"\\" & vbCrLf\\r\\n602: Context.Write \\" \\" & vbCrLf\\r\\n696: Context.Write \\" \\"\\r\\n697: \\r\\n698: else\\r\\n699: \\r\\n700: Context.Write \\"\\" & vbCrLf\\r\\n701: Context.Write \\" \\" & vbCrLf\\r\\n702: Context.Write \\" \\"\\r\\n703: \\r\\n704: end if\\r\\n705: \\r\\n706: Context.Write \\"\\" & vbCrLf\\r\\n707: Context.Write \\" \\"\\r\\n708: \\r\\n709: \\r\\n710: index = index + 1\\r\\n711: next\\r\\n712: \\r\\n713: \\r\\n714: Context.Write \\"\\" & vbCrLf\\r\\n715: Context.Write \\"\\" & vbCrLf\\r\\n716: Context.Write \\"\\"\\r\\n717: \\r\\n718: next\\r\\n719: \\r\\n720: Context.Write \\"\\" & vbCrLf\\r\\n721: Context.Write \\"
\\" & vbCrLf\\r\\n615: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n628: Context.Write \\" \\" & vbTab & \\"\\" & vbTab & \\"\\"\\"\\"\\"\\" & vbCrLf\\r\\n633: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n634: Context.Write \\" \\"\\r\\n635: \\r\\n636: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 OR Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 OR Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n637: \\r\\n638: Context.Write \\"\\" & vbCrLf\\r\\n639: Context.Write \\" \\" & vbTab & \\"
\\" & vbCrLf\\r\\n640: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n641: \\r\\n642: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 then \\r\\n643: \\r\\n644: Context.Write \\"\\"\\r\\n645: \\r\\n646: Context.Write index+1\\r\\n647: \\r\\n648: Context.Write \\"\\"\\r\\n649: \\r\\n650: end if \\r\\n651: \\r\\n652: Context.Write \\"\\" & vbCrLf\\r\\n653: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n654: \\r\\n655: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n656: \\r\\n657: Context.Write \\"\\"\\r\\n658: \\r\\n659: Context.Write image.Name\\r\\n660: \\r\\n661: Context.Write \\"\\"\\r\\n662: \\r\\n663: end if \\r\\n664: \\r\\n665: Context.Write \\"\\" & vbCrLf\\r\\n666: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n667: \\r\\n668: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n669: \\r\\n670: Context.Write \\"\\" & vbCrLf\\r\\n671: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n672: \\r\\n673: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n674: \\r\\n675: Context.Write \\"
\\"\\r\\n676: \\r\\n677: end if \\r\\n678: \\r\\n679: Context.Write \\"\\"\\r\\n680: \\r\\n681: Context.Write image.Description\\r\\n682: \\r\\n683: Context.Write \\"\\" & vbCrLf\\r\\n684: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n685: \\r\\n686: end if \\r\\n687: \\r\\n688: Context.Write \\"\\" & vbCrLf\\r\\n689: Context.Write \\" \\" & vbTab & \\"
\\" & vbCrLf\\r\\n690: Context.Write \\" \\"\\r\\n691: \\r\\n692: end if \\r\\n693: \\r\\n694: Context.Write \\"\\" & vbCrLf\\r\\n695: Context.Write \\"
 
\\" & vbCrLf\\r\\n722: Context.Write \\"
\\"\\r\\n723: \\r\\n724: end sub\\r\\n725: \\r\\n", CompleteSourceText="001: option explicit\\r\\n002: \\r\\n003: ExecuteScript__\\r\\n004: \\r\\n(...Versteckte Zeilen...)\\r\\n367: \\r\\n368: \\r\\n369: \\r\\n370: public sub ExecuteScript__()\\r\\n371: \\r\\n372: \\r\\n373: dim article\\r\\n374: set article = Context.Scope.CurrentPageItem\\r\\n375: dim items\\r\\n376: set items = Context.Scope.CurrentPage.ScriptingGetPageItems( Context.Scope.Library.VersioningVersion )\\r\\n377: \\r\\n378: dim hassame\\r\\n379: hassame = false\\r\\n380: \\r\\n381: dim i\\r\\n382: for i=0 to items.Count-1\\r\\n383: dim item\\r\\n384: set item = items(i)\\r\\n385: \\r\\n386: if item.IsActive and (item.StyleName = \\"Bilderalbum\\" or item.StyleName = \\"Einzelnes Bild\\") then\\r\\n387: \\tif item.ID = article.ID and not hassame then\\r\\n388: \\r\\n389: \\r\\n390: Context.Write \\"\\" & vbCrLf\\r\\n391: Context.Write \\"\\" & vbCrLf\\r\\n392: Context.Write \\"\\"\\r\\n393: \\r\\n394: if Context.Scope.CurrentPage.GetInheritedAttribute(\\"picgallery_language\\").Value = \\"de\\" then \\r\\n395: \\r\\n396: Context.Write \\"\\" & vbCrLf\\r\\n397: Context.Write \\"\\" & vbCrLf\\r\\n398: Context.Write \\"\\"\\r\\n399: \\r\\n400: elseif Context.Scope.CurrentPage.GetInheritedAttribute(\\"picgallery_language\\").Value = \\"en\\" then \\r\\n401: \\r\\n402: Context.Write \\"\\" & vbCrLf\\r\\n403: Context.Write \\"\\" & vbCrLf\\r\\n404: Context.Write \\"\\"\\r\\n405: \\r\\n406: end if \\r\\n407: \\r\\n408: Context.Write \\"\\" & vbCrLf\\r\\n409: Context.Write \\"\\" & vbCrLf\\r\\n415: Context.Write \\"\\"\\r\\n416: \\r\\n417: \\tend if\\r\\n418: hassame = true\\r\\n419: end if\\r\\n420: next\\r\\n421: \\r\\n422: \\r\\n423: Context.Write \\"\\" & vbCrLf\\r\\n424: Context.Write \\"\\" & vbCrLf\\r\\n425: Context.Write \\"\\"\\r\\n426: \\r\\n427: \\r\\n428: dim albumID : albumID = Context.Scope.CurrentArticle.Values.GetValue(\\"Album\\")\\r\\n429: dim thumbnailWidth : thumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue(\\"Breite der Vorschaubilder\\")\\r\\n430: dim thumbnailHeight : thumbnailHeight = CInt((thumbnailWidth*3)/4)\\r\\n431: dim imagesPerRow : imagesPerRow = Context.Scope.CurrentArticle.Values.GetValue(\\"Anzahl Vorschaubilder pro Zeile\\")\\r\\n432: dim assetCategory : set assetCategory = Context.Scope.CurrentWebProject.GetAssetCategoryByID( albumID )\\r\\n433: dim images : set images = assetCategory.Images\\r\\n434: \\r\\n435: dim rowIndex : dim colIndex : dim index\\r\\n436: dim rowCount : rowCount = images.Count \\ imagesPerRow\\r\\n437: if images.Count mod imagesPerRow > 0 then \\r\\n438: rowCount = rowCount + 1\\r\\n439: end if\\r\\n440: \\r\\n441: Context.Scope.Library.Log images.Count & \\" images...\\"\\r\\n442: Context.Scope.Library.CheckAsyncStopProcessing\\r\\n443: \\r\\n444: \\' Must use a prefix to allow multiple instances of the JavaScript on the page.\\r\\n445: dim prefix\\r\\n446: prefix = \\"prefix_1194_\\"\\r\\n447: \\r\\n448: \\r\\n449: Context.Write \\"\\" & vbCrLf\\r\\n450: Context.Write \\"\\" & vbCrLf\\r\\n455: Context.Write \\"
\\" & vbCrLf\\r\\n456: Context.Write \\"\\"\\r\\n457: \\r\\n458: if Context.Scope.CurrentArticle.Name <> \\"\\" then \\r\\n459: \\r\\n460: Context.Write \\"

\\"\\r\\n461: \\r\\n462: Context.Write Context.Scope.CurrentArticle.Name\\r\\n463: \\r\\n464: Context.Write \\"

\\"\\r\\n465: \\r\\n466: end if \\r\\n467: \\r\\n468: Context.Write \\"\\" & vbCrLf\\r\\n469: Context.Write \\"\\" & vbCrLf\\r\\n564: Context.Write \\"\\" & vbCrLf\\r\\n565: Context.Write \\"\\"\\r\\n566: \\r\\n567: \\r\\n568: \\' -- Build the thumbnails grid.\\r\\n569: index = 0\\r\\n570: for rowIndex = 0 to rowCount-1\\r\\n571: \\r\\n572: \\r\\n573: Context.Write \\"\\" & vbCrLf\\r\\n574: Context.Write \\"\\" & vbCrLf\\r\\n575: Context.Write \\" \\"\\r\\n576: \\r\\n577: \\r\\n578: for colIndex = 0 to imagesPerRow-1\\r\\n579: \\r\\n580: \\r\\n581: Context.Write \\"\\" & vbCrLf\\r\\n582: Context.Write \\" \\"\\r\\n583: \\r\\n584: \\r\\n585: if index<=images.Count-1 then\\r\\n586: set image = images.Item(index)\\r\\n587: \\r\\n588: \\t\\t\\tif image.height > image.width then\\r\\n589: \\t\\t\\t\\tthumbnailWidth = thumbnailHeight\\r\\n590: \\t\\t\\telse\\r\\n591: \\t\\t\\t\\tthumbnailWidth = Context.Scope.CurrentArticle.Values.GetValue(\\"Breite der Vorschaubilder\\")\\r\\n592: \\t\\t\\tend if\\r\\n593: \\t\\t\\r\\n594: if image.CheckCreateThumbnail( thumbnailWidth ) then\\r\\n595: Context.Scope.Library.Log \\"Erstelle Vorschaubild \\" & image.Name\\r\\n596: else\\r\\n597: Context.Scope.Library.CheckAsyncStopProcessing\\r\\n598: end if\\r\\n599: \\r\\n600: \\r\\n601: Context.Write \\"\\" & vbCrLf\\r\\n602: Context.Write \\" \\" & vbCrLf\\r\\n696: Context.Write \\" \\"\\r\\n697: \\r\\n698: else\\r\\n699: \\r\\n700: Context.Write \\"\\" & vbCrLf\\r\\n701: Context.Write \\" \\" & vbCrLf\\r\\n702: Context.Write \\" \\"\\r\\n703: \\r\\n704: end if\\r\\n705: \\r\\n706: Context.Write \\"\\" & vbCrLf\\r\\n707: Context.Write \\" \\"\\r\\n708: \\r\\n709: \\r\\n710: index = index + 1\\r\\n711: next\\r\\n712: \\r\\n713: \\r\\n714: Context.Write \\"\\" & vbCrLf\\r\\n715: Context.Write \\"\\" & vbCrLf\\r\\n716: Context.Write \\"\\"\\r\\n717: \\r\\n718: next\\r\\n719: \\r\\n720: Context.Write \\"\\" & vbCrLf\\r\\n721: Context.Write \\"
\\" & vbCrLf\\r\\n615: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n628: Context.Write \\" \\" & vbTab & \\"\\" & vbTab & \\"\\"\\"\\"\\"\\" & vbCrLf\\r\\n633: Context.Write \\" \\" & vbTab & \\"\\" & vbCrLf\\r\\n634: Context.Write \\" \\"\\r\\n635: \\r\\n636: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 OR Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 OR Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n637: \\r\\n638: Context.Write \\"\\" & vbCrLf\\r\\n639: Context.Write \\" \\" & vbTab & \\"
\\" & vbCrLf\\r\\n640: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n641: \\r\\n642: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bilder nummerieren\\") = 1 then \\r\\n643: \\r\\n644: Context.Write \\"\\"\\r\\n645: \\r\\n646: Context.Write index+1\\r\\n647: \\r\\n648: Context.Write \\"\\"\\r\\n649: \\r\\n650: end if \\r\\n651: \\r\\n652: Context.Write \\"\\" & vbCrLf\\r\\n653: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n654: \\r\\n655: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n656: \\r\\n657: Context.Write \\"\\"\\r\\n658: \\r\\n659: Context.Write image.Name\\r\\n660: \\r\\n661: Context.Write \\"\\"\\r\\n662: \\r\\n663: end if \\r\\n664: \\r\\n665: Context.Write \\"\\" & vbCrLf\\r\\n666: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n667: \\r\\n668: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildbeschreibung anzeigen\\") = 1 then \\r\\n669: \\r\\n670: Context.Write \\"\\" & vbCrLf\\r\\n671: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n672: \\r\\n673: if Context.Scope.CurrentArticle.Values.GetValue(\\"Bildname anzeigen\\") = 1 then \\r\\n674: \\r\\n675: Context.Write \\"
\\"\\r\\n676: \\r\\n677: end if \\r\\n678: \\r\\n679: Context.Write \\"\\"\\r\\n680: \\r\\n681: Context.Write image.Description\\r\\n682: \\r\\n683: Context.Write \\"\\" & vbCrLf\\r\\n684: Context.Write \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\" & vbTab & \\"\\"\\r\\n685: \\r\\n686: end if \\r\\n687: \\r\\n688: Context.Write \\"\\" & vbCrLf\\r\\n689: Context.Write \\" \\" & vbTab & \\"
\\" & vbCrLf\\r\\n690: Context.Write \\" \\"\\r\\n691: \\r\\n692: end if \\r\\n693: \\r\\n694: Context.Write \\"\\" & vbCrLf\\r\\n695: Context.Write \\"
 
\\" & vbCrLf\\r\\n722: Context.Write \\"
\\"\\r\\n723: \\r\\n724: end sub\\r\\n725: \\r\\n", ExcepInfo=EXCEPINFO { }, LineNumber=432, ColumnNumber=13, SourceLine="", SourceContext=0, Description="Objekt erforderlich: \\'assetCategory\\'", Data=ListDictionaryInternal { Count=0, Keys=NodeKeyValueCollection { }, IsReadOnly=False, IsFixedSize=False, IsSynchronized=False, SyncRoot=Object { }, Values=NodeKeyValueCollection { } }, InnerException=null, TargetSite=RuntimeMethodInfo: Run, StackTrace=" bei ZetaProducer.RuntimeBusinessLogic.Code.Scripting.BaseInterpreter.Run()\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderInterpreter.OnRenderArticle(String text, RenderGrid grid)\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderAreaGrid.FormatGridItem()\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderGrid.Render()\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Grids.RenderAreaGrid.Render()\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.Macros.RenderGridMacros.DoProcess(String textToProcess)\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderDispatcher.DoProcess(String textToProcess)\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderPage.RenderCode(String renderText)\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderPage.CreatePage()\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderEngine.CreatePage(WebPage page)\\r\\n bei ZetaProducer.RuntimeBusinessLogic.Code.Rendering.RenderEngine.Process(RenderEngineParameterInfo parameterInfo)\\r\\n bei ZetaProducer.Main.UI.BuildPublish.Simple.SimpleBuildPublishForm.DoWorkBuild(Object sender, DoWorkEventArgs e)\\r\\n bei ZetaProducer.Main.UI.BuildPublish.Common.AsyncRenderGuiBinder._bw_DoWork(Object sender, DoWorkEventArgs e)\\r\\n bei System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)\\r\\n bei System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)", HelpLink=null, Source="ActiveScriptSite.ScriptError" }